import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      //登录
      path: '/',
      component: () => import('../views/admin/LoginView.vue')
    },
    {
      //门店新增
      path: '/madd',
      name: 'madd',
      component: () => import('../views/mmdian/MaddView.vue')
    },
    {
      //门店列表
      path: '/mshow',
      name: 'mshow',
      component: () => import('../views/mmdian/MshowView.vue')
    },
    {
      //修改门店
      path: '/mupdate',
      name: 'mupdate',
      component: () => import('../views/mmdian/MupdateView.vue')
    },
    {
      //房号新增
      path: '/fadd',
      name: 'fadd',
      component: () => import('../views/fanghao/FaddView.vue')
    },
    {
      //房号列表
      path: '/fshow',
      name: 'fshow',
      component: () => import('../views/fanghao/FshowView.vue')
    },
    {
      //房价新增
      path: '/padd',
      name: 'add',
      component: () => import('../views/fprice/PaddView.vue')
    },
    {
      //房价列表
      path: '/pshow',
      name: 'pshow',
      component: () => import('../views/fprice/PshowView.vue')
    },
    {
      //修改房价
      path: '/pupdate',
      name: 'pupdate',
      component: () => import('../views/fprice/PupdateView.vue')
    }
  ]
})

export default router
